<?php
$plugin->load_plugin_lang();

$post_var_receive = retrieve(POST,'test', '');
if($post_var_receive!='')
{
	$Sql->query_inject("UPDATE phpboost_plugin_quizz_qcm1 SET test='".$post_var_receive."' WHERE id=".$module->get_module_id_created_module(),__LINE__,__FILE__);	
	$plugin->edit_module($module->get_module_id_created_module());
}

$tpl = new Template_plugin('course/plugin/quizz_qcm1/templates/admin/edit/index.tpl');

$tpl->assign_vars(array(
	'TEST_VAR_LANG'=>$LANG['test'],
	'ACTION_FORM'=>$currentLink."index",
	'CONFIRM'=>$LANG['confirm_message'],
	'VALUE_FORM'=>$Sql->query("SELECT test FROM phpboost_plugin_quizz_qcm1 WHERE id=".$module->get_module_id_created_module(),__LINE__,__FILE__),
));

$tpl->parse();
?>